﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.Modeling.Diagrams;
using System.Diagnostics;
using Microsoft.VisualStudio.Modeling;

namespace DSLFactory.VSCTDesigner
{
    partial class ButtonShape
    {
        public override bool HasConnectionPoints
        {
            get
            {
                return true;
            }
        }

        public override void EnsureConnectionPoints(Microsoft.VisualStudio.Modeling.Diagrams.LinkShape link)
        {
            CreateConnectionPoint(new Microsoft.VisualStudio.Modeling.Diagrams.PointD(this.AbsoluteBoundingBox.Left,
                this.AbsoluteBoundingBox.Center.Y));
            //CreateConnectionPoint(new Microsoft.VisualStudio.Modeling.Diagrams.PointD(this.AbsoluteBoundingBox.Right,
            //    this.AbsoluteBoundingBox.Center.Y));
        }


        private string GetVariableTooltipText(Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem item)
        {
            Command cmd = this.Subject as Command;
            return cmd.GetKeyBindingValue();
        }
    }
}
